package com.tubi.method;

/*
* 便利数组的方法
* */
public class Demo7Method {
    public static void main(String[] args) {
        //静态创建数组
        int[] arr = {11,22,33,44};
        biabli(arr);
    }
    public  static void biabli( int[] arr ){
        System.out.print("[");
        for (int i = 0; i < arr.length; i++) {
            if(i == arr.length-1){
                System.out.println(arr[i]+"]");
            }else {
                System.out.print(arr[i]+", ");
            }
        }
    }
}
